﻿namespace vsarFlightPlan
{
    using vsarFlightPlan.ViewModels;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Navigation;

    public sealed partial class MetadataEditor : Page
    {
        public MetadataEditor()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            this.DataContext = new ViewModels.MetadataEditor(e.Parameter as DetailedViewItem);
        }
    }
}